package com.example.allplan.SQhelper;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

public class SuoYouChouQianSQhelper extends SQLiteOpenHelper {
    static final String CHUNAG_JIAN_CHOU_QIAN_BIAO="create table chou_qian_biao(id int primary key,pai_xu_you_biao int,chou_qian_ming varchar(15),wen_jian_ming varchar(15))";
    Context mcon;

    public SuoYouChouQianSQhelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
        mcon = context;
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CHUNAG_JIAN_CHOU_QIAN_BIAO);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
